package ${packageName}.${moduleName}.model.po;

<#list importList as i>
import ${i};
</#list>

import com.open.common.model.po.DataEntity;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

public class ${className} extends DataEntity<${className}> {

    private static final long serialVersionUID = 1L;
<#-- 生成字段属性 -->
<#list columnList as column>

    <#if column.comment??>// ${column.comment}</#if>
    private ${column.fieldType} ${column.fieldName};
</#list>

    <#-- 生成get和set方法 -->
<#list columnList as column>
    public ${column.fieldType} get${column.fieldName?cap_first}() {
        return ${column.fieldName};
    }

    public void set${column.fieldName?cap_first}(${column.fieldType} ${column.fieldName}) {
        this.${column.fieldName} = ${column.fieldName};
    }

</#list>

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}